﻿using System;
using System.Collections.Generic;
using DataAccess;

namespace DataAccess
{
    public class Filter : ServiceObject
    {
        public Filter()
        {
        }

        public Filter(long id, String name, String tableName,
                      String type, User createdUser, IList<FilterField> fields)
        {
            Id = id;
            Name = name;
            TableName = tableName;
            Type = type;
            CreatedUser = createdUser;
            Fields = fields;
        }

        public String Name { get; set; }

        public String TableName { get; set; }

        public String Type { get; set; }

        public IList<FilterField> Fields { get; set; }

        public User CreatedUser { get; set; }
    }
}